// pages/roomComment/roomComment.ts
Page({

  /**
   * 页面的初始数据
   */
  data: {
    comment:[] as any[]
  },

  /**
   * 生命周期函数--监听页面加载
   */
  onLoad() {
    const eventChannel = this.getOpenerEventChannel()
    eventChannel.on('context', (data)=> {
        this.setData({
          comment:data,
        })
    })
  }
})